import { Injectable, Inject, forwardRef } from '@nestjs/common';
import { PersonService } from './person/person.service';
import { XxService } from './person/xx.service';

import { CccService } from './ccc.service';
import { DddService } from './ddd.service';

@Injectable()
export class AppService {
  constructor(
    private cccService: CccService,
    private dddService: DddService,
  ) {}

  @Inject(PersonService)
  private personService: PersonService;

  @Inject(XxService)
  private xxService: XxService;

  getHello(): string {
    console.log(
      '是否水电费水电费收到===',
      this.dddService.ddd() + this.cccService.eee(),
    );
    return this.dddService.ddd() + this.cccService.eee();
    // this.xxService.getHello() + this.personService.findAll();
    // return 'Hello hahh!';
  }
}
